home *** CD-ROM | disk | FTP | other *** search
- CodeAntialias Segment Para Use16
- Assume Cs:CodeAntialias
-
- ; ===========================================================================
- ; Antialiasing move routine from 512 wide video buffer
- ; ////////////////////////////////////////////////////
- ; Ds=color table segment
- ; Ecx=0FF380000h+video segment
- ; ===========================================================================
-
- Antialias512 Proc Far
- .486
-
- Xor Edx,Edx
- Mov Bp,0A000h
- MoveNextLine: Mov Si,013Ch
- Mov Fs,Cx
- Mov Es,Bp
- AntialiaseLine: Mov Di,Fs:[Si+03h]
- Mov Bh,Fs:[Si+0203h]
- Mov Bl,[Di]
- Mov Di,Fs:[Si+02h]
- Mov Al,[Bx]
- Mov Bh,Fs:[Si+0202h]
- Mov Bl,[Di]
- Mov Di,Fs:[Si+01h]
- Mov Ah,[Bx]
- Bswap Eax
- Mov Bh,Fs:[Si+0201h]
- Mov Bl,[Di]
- Mov Di,Fs:[Si]
- Mov Ah,[Bx]
- Mov Bh,Fs:[Si+0200h]
- Mov Bl,[Di]
- Mov Fs:[Si+02h],Edx
- Mov Al,[Bx]
- Mov Es:[Si],Eax
- Sub Si,04h
- Jnc AntialiaseLine
- Mov Fs:[0000h],Dx
- Add Bp,0014h
- Add Ecx,00010020h
- Jnc MoveNextLine
- Mov Di,0130h
- Mov Fs:[0140h],Dl
- ClearLastLine: Mov Fs:[Di],Edx
- Mov Fs:[Di+04h],Edx
- Mov Fs:[Di+08h],Edx
- Mov Fs:[Di+0Ch],Edx
- Sub Di,10h
- Jnc ClearLastLine
-
- RetF
- Antialias512 EndP
-
- ; ===========================================================================
- ; Antialiasing move routine from 320 wide video buffer
- ; ////////////////////////////////////////////////////
- ; Ds=color table segment
- ; Fs=video segment
- ; ===========================================================================
-
- Antialias320 Proc Far
- .486
-
- Mov Ax,0A000h
- Mov Es,Ax
- Mov Si,64000-4
- AntialiaseScreen: Mov Di,Fs:[Si+03h]
- Mov Bh,Fs:[Si+0143h]
- Mov Bl,[Di]
- Mov Di,Fs:[Si+02h]
- Mov Al,[Bx]
- Mov Bh,Fs:[Si+0142h]
- Mov Bl,[Di]
- Mov Di,Fs:[Si+01h]
- Mov Ah,[Bx]
- Bswap Eax
- Mov Bh,Fs:[Si+0141h]
- Mov Bl,[Di]
- Mov Di,Fs:[Si]
- Mov Ah,[Bx]
- Mov Bh,Fs:[Si+0140h]
- Mov Bl,[Di]
- Mov Al,[Bx]
- Mov Es:[Si],Eax
- Sub Si,04h
- Jnc AntialiaseScreen
-
- RetF
- Antialias320 EndP
-
-
- CodeAntialias EndS
-